//
//  UpImageDownTitleBtn.m
//  GoFunLive
//
//  Created by r on 2017/12/20.
//  Copyright © 2017年 快趣住. All rights reserved.
//

#import "UpImageDownTitleBtn.h"

@implementation UpImageDownTitleBtn

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.imageView.width = self.currentImage.size.width;
    self.imageView.height = self.currentImage.size.height;
    self.imageView.y = 0;
    self.imageView.centerX = self.width * 0.5;
    
    self.titleLabel.width = self.width;
    self.titleLabel.height = self.titleLabel.font.pointSize;
    self.titleLabel.y = self.height - self.titleLabel.font.pointSize;
    self.titleLabel.x = 0;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

@end
